/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "调拨明细表",TableName = "TransferDetail")]
    public partial class TransferDetail:BaseEntity
    {
        /// <summary>
       ///明细 ID
       /// </summary>
       [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
       [Key]
       [Display(Name ="明细 ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int DetailId { get; set; }

       /// <summary>
       ///关联调拨单号
       /// </summary>
       [Display(Name ="关联调拨单号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string TransferOrderNo { get; set; }

       /// <summary>
       ///商品 ID
       /// </summary>
       [Display(Name ="商品 ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public long ProductId { get; set; }

       /// <summary>
       ///商品名称
       /// </summary>
       [Display(Name ="商品名称")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ProductName { get; set; }

       /// <summary>
       ///商品编号
       /// </summary>
       [Display(Name ="商品编号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ProductNo { get; set; }

       /// <summary>
       ///商品规格
       /// </summary>
       [Display(Name ="商品规格")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Spec { get; set; }

       /// <summary>
       ///商品单位
       /// </summary>
       [Display(Name ="商品单位")]
       [MaxLength(20)]
       [Column(TypeName="nvarchar(20)")]
       [Editable(true)]
       public string Unit { get; set; }

       /// <summary>
       ///商品类型
       /// </summary>
       [Display(Name ="商品类型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ProductType { get; set; }

       /// <summary>
       ///调出仓库库存快照
       /// </summary>
       [Display(Name ="调出仓库库存快照")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? OutWarehouseStock { get; set; }

       /// <summary>
       ///调入仓库库存快照
       /// </summary>
       [Display(Name ="调入仓库库存快照")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? InWarehouseStock { get; set; }

       /// <summary>
       ///调拨数量
       /// </summary>
       [Display(Name ="调拨数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int TransferQty { get; set; }

       /// <summary>
       ///商品单价
       /// </summary>
       [Display(Name ="商品单价")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? UnitPrice { get; set; }

       /// <summary>
       ///调拨金额
       /// </summary>
       [Display(Name ="调拨金额")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? TransferAmount { get; set; }

       /// <summary>
       ///已出库数量
       /// </summary>
       [Display(Name ="已出库数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int OutQty { get; set; }

       /// <summary>
       ///未出库数量
       /// </summary>
       [Display(Name ="未出库数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int UnOutQty { get; set; }

       /// <summary>
       ///已入库数量
       /// </summary>
       [Display(Name ="已入库数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int InQty { get; set; }

       /// <summary>
       ///未入库数量
       /// </summary>
       [Display(Name ="未入库数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int UnInQty { get; set; }

       
    }
}